import { Table, Button, Space } from 'antd';

export default function QualityTrace() {
  const columns = [
    {
      title: '追溯编号',
      dataIndex: 'traceId',
    },
    {
      title: '产品名称',
      dataIndex: 'productName',
    },
    {
      title: '操作',
      render: () => (
        <Space>
          <Button type="link">查看详情</Button>
          <Button type="link">生成报告</Button>
        </Space>
      ),
    },
  ];

  return (
    <div style={{ padding: 24 }}>
      <Button type="primary" style={{ marginBottom: 16 }}>新建追溯</Button>
      <Table columns={columns} rowKey="traceId" />
    </div>
  );
}